<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>搜索 {$site_info.site_name|default=''}</title>
    <meta name="keywords" content="{$site_info.site_seo_keywords|default=''}"/>
    <meta name="description" content="{$site_info.site_seo_description|default=''}">
    <include file="public@head"/>
    
</head>
<style type="text/css">
.content{margin-left: auto;
    margin-right: auto;
    width: 1170px;}
.News .wrap .news_box li{
    overflow: hidden;
    padding: 15px 20px;
    margin-bottom: 25px;
    background: #f1f0f0;
}
.sub_tit h4{
    font-size: 20px;
    margin-bottom: 10px;
}
</style>
<body>
    <include file="public@nav"/>

    <div class="content">
        <!-- banner -->
        <php>
            $banner_slide_id = empty($theme_vars['banner_slide']) ? 1 : $theme_vars['banner_slide'];
            $search_title    = empty($theme_vars['search_title']) ? '' : $theme_vars['search_title'];
            $search_title2   = empty($theme_vars['search_title2']) ? '' : $theme_vars['search_title2'];
        </php>
        <slides id="$banner_slide_id" limit="1">
            <div class="sub_banner" style="background-image: url({:cmf_get_image_url($vo['image'])});">
                <notempty name="search_title">
                    <div class="wrap_1400">
                        <span>{$search_title}</span>
                    </div>
                </notempty>
            </div>
        </slides>
        
        <div class="sub_box">
            <!-- 面包 -->
            <div class="wrap">
                <div class="sub_tit">
                    <h4>{$search_title|default=''}</h4>
                </div>
            </div>

            <div class="prolist">
                <ul class="clearfix">
                    <php>
                                $where = [
                                    'goods_name' => ['like',"%$keyword%"]
                                ];
                            </php>
                            <goods:goods item="vo" where="$where" order="goods.create_time DESC" page="10" field="goods.goods_id,goods_name,published_time,post_excerpt,goods.more,category_id">
                                <php>
                                    $vo['goods_name'] = str_replace($keyword,"<font color='red'>$keyword</font>",$vo['goods_name']);
                                </php>

                    <li <if condition="$i % 4 eq 0">style='margin-right:0;width:252px;'<else/>style="width:252px;"</if>>
                        <a href="{:cmf_url('goods/Details/index',array('id'=>$vo['goods_id'],'cid'=>$vo['category_id']))}">
                            <div class="pic">
                                <img src="{:cmf_get_image_url($vo.more.thumbnail)}" style="width:252px;height:210px;">
                            </div>
                            <span>{$vo.goods_name}</span>
                        </a>
                    </li>
                    </goods:goods>
                    
                </ul>
                <div class="pages">
                    <page/>
                </div>
            </div>
        </div>
    </div>

    <include file="public@footer"/>
    <include file="public@scripts"/>
</body>
</html>
